import type { RouteRecordRaw } from "vue-router";

/* 路由配置表 */
export const routes: Array<RouteRecordRaw> = [
  {
    // path 路由地址和 component组件之间有对应的映射关系
    path: "/login",
    name: "login",
    // component是一个组件 导入
    component: () => import("@/views/LoginView.vue"),
    meta: {
      title: "登录"
    }
  },
  {
    path: "/",
    redirect: "/dashboard"
  },
  {
    path: "/",
    component: () => import("../views/HomeView.vue"),
    meta: {
      title: ""
    },
    children: [
      {
        path: "/dashboard",
        name: "dashboard",
        component: () => import("../views/DashboardView.vue"),
        meta: {
          title: "系统首页",
          permission: true
        }
      },
      {
        path: "/personalInfo",
        name: "personalInfo",
        component: () => import("../views/user/PersonalInfo.vue"),
        meta: {
          title: "个人信息",
          permission: true
        }
      },
      {
        path: "/changePassword",
        name: "changePassword",
        component: () => import("../views/user/ChangePassword.vue"),
        meta: {
          title: "修改密码",
          permission: true
        }
      },
      {
        path: "/dict",
        name: "dict",
        component: () => import("../views/configInfo/DictView.vue"),
        meta: {
          title: "字典管理",
          permission: true
        }
      },
      // {
      //   path: "/resourceInfo",
      //   name: "resourceInfo",
      //   component: () =>
      //     import(
      //       /* webpackChunkName: "resourceInfo" */
      //       "../views/configInfo/ResourceInfo.vue"
      //     ),
      //   meta: {
      //     title: "资源信息",
      //     permission: true
      //   }
      // },
      {
        path: "/menuInfo",
        name: "menuInfo",
        component: () => import("../views/configInfo/MenuInfo.vue"),
        meta: {
          title: "菜单信息",
          permission: true
        }
      },
      {
        path: "/softwareUpgrade",
        name: "softwareUpgrade",
        component: () => import("../views/configInfo/SoftwareUpgrade.vue"),
        meta: {
          title: "升级信息",
          permission: true
        }
      },
      {
        path: "/roleInfo",
        name: "roleInfo",
        component: () => import("../views/configInfo/RoleInfo.vue"),
        meta: {
          title: "角色信息",
          permission: true
        }
      },
      {
        path: "/customerServicClass",
        name: "customerServicClass",
        component: () => import("../views/configInfo/customer/CustomerServicClass.vue"),
        meta: {
          title: "客服分类信息",
          permission: true
        }
      },
      {
        path: "/customerServicList",
        name: "customerServicList",
        component: () => import("../views/configInfo/customer/CustomerServicList.vue"),
        meta: {
          title: "客服列表信息",
          permission: true
        }
      },
      {
        path: "/commonProblemClass",
        name: "commonProblemClass",
        component: () => import("../views/configInfo/problemManage/CommonProblemClass.vue"),
        meta: {
          title: "问题分类信息",
          permission: true
        }
      },
      {
        path: "/commonProblemInfo",
        name: "commonProblemInfo",
        component: () => import("../views/configInfo/problemManage/CommonProblemInfo.vue"),
        meta: {
          title: "问题列表信息",
          permission: true
        }
      },
      {
        path: "/constantSetting",
        name: "constantSetting",
        component: () => import("../views/configInfo/ConstantSetting.vue"),
        meta: {
          title: "常量设置",
          permission: true
        }
      },
      {
        path: "/userInfo",
        name: "userInfo",
        component: () => import("../views/user/UserInfo.vue"),
        meta: {
          title: "后台账户信息",
          permission: true
        }
      },
      {
        path: "/expressInfo",
        name: "expressInfo",
        component: () => import("../views/configInfo/ExpressInfo.vue"),
        meta: {
          title: "物流公司",
          permission: true
        }
      },
      {
        path: "/appUserInfo",
        name: "appUserInfo",
        component: () => import("../views/user/AppUserInfo.vue"),
        meta: {
          title: "前端账户信息",
          permission: true
        }
      },
      {
        path: "/promotionLink",
        name: "promotionLink",
        component: () => import("../views/user/PromotionLink.vue"),
        meta: {
          title: "推广链接信息",
          permission: true
        }
      },
      {
        path: "/redEnvelopeManagement",
        name: "redEnvelopeManagement",
        component: () => import("../views/moneyManager/RedEnvelopeManagement.vue"),
        meta: {
          title: "红包管理",
          permission: true
        }
      },
      {
        path: "/redEnvelopeInfo",
        name: "redEnvelopeInfo",
        component: () => import("../views/moneyManager/RedEnvelopeInfo.vue"),
        meta: {
          title: "红包明细",
          permission: true
        }
      },
      {
        path: "/goldManagement",
        name: "goldManagement",
        component: () => import("../views/moneyManager/GoldManagement.vue"),
        meta: {
          title: "金币管理",
          permission: true
        }
      },
      {
        path: "/goldInfo",
        name: "goldInfo",
        component: () => import("../views/moneyManager/GoldInfo.vue"),
        meta: {
          title: "金币明细",
          permission: true
        }
      },
      {
        path: "/withdrawCashInfo",
        name: "withdrawCashInfo",
        component: () => import("../views/moneyManager/WithdrawCashInfo.vue"),
        meta: {
          title: "提现明细",
          permission: true
        }
      },
      {
        path: "/storeEntryRecordInfo",
        name: "storeEntryRecordInfo",
        component: () => import("../views/moneyManager/StoreEntryRecordInfo.vue"),
        meta: {
          title: "店铺入驻记录",
          permission: true
        }
      },
      {
        path: "/storeDepositInfo",
        name: "storeDepositInfo",
        component: () => import("../views/moneyManager/StoreDepositInfo.vue"),
        meta: {
          title: "保证金记录",
          permission: true
        }
      },
      {
        path: "/categoriesInfo",
        name: "categoriesInfo",
        component: () => import("../views/redPacketMallManage/CategoriesInfo.vue"),
        meta: {
          title: "分类管理",
          permission: true
        }
      },
      {
        path: "/mallGoodsInfo",
        name: "mallGoodsInfo",
        component: () => import("../views/redPacketMallManage/MallGoodsInfo.vue"),
        meta: {
          title: "商品管理",
          permission: true
        }
      },
      {
        path: "/freighTemplate",
        name: "freighTemplate",
        component: () => import("../views/redPacketMallManage/FreighTemplate.vue"),
        meta: {
          title: "运费模板",
          permission: true
        }
      },
      {
        path: "/advertisingType",
        name: "advertisingType",
        component: () => import("../views/advertisingManager/AdvertisingType.vue"),
        meta: {
          title: "广告类型",
          permission: true
        }
      },
      {
        path: "/advertisingInfo",
        name: "advertisingInfo",
        component: () => import("../views/advertisingManager/AdvertisingInfo.vue"),
        meta: {
          title: "广告列表",
          permission: true
        }
      },
      {
        path: "/redPacketMallOrderInfo",
        name: "redPacketMallOrderInfo",
        component: () => import("../views/redPacketMallManage/RedPacketMallOrderInfo.vue"),
        meta: {
          title: "红包商城订单",
          permission: true
        }
      },
      {
        path: "/organizationInfo",
        name: "organizationInfo",
        component: () => import("../views/configInfo/OrganizationInfo.vue"),
        meta: {
          title: "组织信息",
          permission: true
        }
      },
      {
        path: "/redEnvelopeRush",
        name: "redEnvelopeRush",
        component: () => import("../views/redPacketMallManage/activityManager/RedEnvelopeRush.vue"),
        meta: {
          title: "红包抢购",
          permission: true
        }
      },
      {
        path: "/strictlySelectSpecial",
        name: "strictlySelectSpecial",
        component: () => import("../views/redPacketMallManage/activityManager/StrictlySelectSpecial.vue"),
        meta: {
          title: "严选专场",
          permission: true
        }
      },
      {
        path: "/timeLimitKill",
        name: "timeLimitKill",
        component: () => import("../views/rentMachineManage/activityManager/TimeLimitKill.vue"),
        meta: {
          title: "限时秒杀",
          permission: true
        }
      },
      // {
      //   path: "/creditInstallment",
      //   name: "creditInstallment",
      //   component: () =>
      //     import(
      //       /* webpackChunkName: "creditInstallment" */
      //       "../views/rentMachineManage/activityManager/CreditInstallment.vue"
      //     ),
      //   meta: {
      //     title: "信用分期",
      //     permission: true
      //   }
      // },
      // {
      //   path: "/platformStrictSelection",
      //   name: "platformStrictSelection",
      //   component: () =>
      //     import(
      //       /* webpackChunkName: "platformStrictSelection" */
      //       "../views/rentMachineManage/activityManager/PlatformStrictSelection.vue"
      //     ),
      //   meta: {
      //     title: "严选专场",
      //     permission: true
      //   }
      // },
      {
        path: "/phoneInfo",
        name: "phoneInfo",
        component: () => import("../views/rentMachineManage/PhoneInfo.vue"),
        meta: {
          title: "手机信息",
          permission: true
        }
      },
      {
        path: "/rentMachineOrderInfo",
        name: "rentMachineOrderInfo",
        component: () => import("../views/rentMachineManage/RentMachineOrderInfo.vue"),
        meta: {
          title: "租机订单",
          permission: true
        }
      },
      {
        path: "/directPurchaseOrderInfo",
        name: "directPurchaseOrderInfo",
        component: () => import("../views/rentMachineManage/DirectPurchaseOrderInfo.vue"),
        meta: {
          title: "直购订单",
          permission: true
        }
      },
      // {
      //   path: "/oldMobileInfo",
      //   name: "oldMobileInfo",
      //   component: () =>
      //     import(
      //       /* webpackChunkName: "oldMobileInfo" */
      //       "../views/rentMachineManage/oldMobileManagement/OldMobileInfo.vue"
      //     ),
      //   meta: {
      //     title: "共享手机信息",
      //     permission: true
      //   }
      // },
      // {
      //   path: "/oldMobileRentOrderInfo",
      //   name: "oldMobileRentOrderInfo",
      //   component: () =>
      //     import(
      //       /* webpackChunkName: "oldMobileRentOrderInfo" */
      //       "../views/rentMachineManage/oldMobileManagement/OldMobileRentOrderInfo.vue"
      //     ),
      //   meta: {
      //     title: "共享租机订单",
      //     permission: true
      //   }
      // },
      // {
      //   path: "/oldDirectPurchaseOrderInfo",
      //   name: "oldDirectPurchaseOrderInfo",
      //   component: () =>
      //     import(
      //       /* webpackChunkName: "oldDirectPurchaseOrderInfo" */
      //       "../views/rentMachineManage/oldMobileManagement/OldDirectPurchaseOrderInfo.vue"
      //     ),
      //   meta: {
      //     title: "共享直购订单",
      //     permission: true
      //   }
      // },
      {
        path: "/installmentBill",
        name: "installmentBill",
        component: () => import("../views/rentMachineManage/InstallmentBill.vue"),
        meta: {
          title: "账单列表",
          permission: true
        }
      },
      {
        path: "/refundBillInfo",
        name: "refundBillInfo",
        component: () => import("../views/rentMachineManage/RefundBillInfo.vue"),
        meta: {
          title: "退款账单列表",
          permission: true
        }
      },
      {
        path: "/refundApplicationInfo",
        name: "refundApplicationInfo",
        component: () => import("../views/rentMachineManage/RefundApplicationInfo.vue"),
        meta: {
          title: "退款申请列表",
          permission: true
        }
      },
      // {
      //   path: "/unmatchedGoodsInfo",
      //   name: "unmatchedGoodsInfo",
      //   component: () =>
      //     import(
      //       /* webpackChunkName: "unmatchedGoodsInfo" */
      //       "../views/rentMachineManage/UnmatchedGoodsInfo.vue"
      //     ),
      //   meta: {
      //     title: "未绑定商品列表",
      //     permission: true
      //   }
      // },
      // {
      //   path: "/storeGoodsExamine",
      //   name: "storeGoodsExamine",
      //   component: () =>
      //     import(
      //       /* webpackChunkName: "storeGoodsExamine" */
      //       "../views/rentMachineManage/StoreGoodsExamine.vue"
      //     ),
      //   meta: {
      //     title: "审核商家发布商品",
      //     permission: true
      //   }
      // },
      // {
      //   path: "/permutationOrderInfo",
      //   name: "permutationOrderInfo",
      //   component: () =>
      //     import(
      //       /* webpackChunkName: "permutationOrderInfo" */
      //       "../views/rentMachineManage/PermutationOrderInfo.vue"
      //     ),
      //   meta: {
      //     title: "置换订单",
      //     permission: true
      //   }
      // },
      {
        path: "/numberCardOrderInfo",
        name: "numberCardOrderInfo",
        component: () => import("../views/rentMachineManage/NumberCardOrderInfo.vue"),
        meta: {
          title: "号卡订单",
          permission: true
        }
      },
      // {
      //   path: "/warrantyCardOrderInfo",
      //   name: "warrantyCardOrderInfo",
      //   component: () =>
      //     import(
      //       /* webpackChunkName: "warrantyCardOrderInfo" */
      //       "../views/rentMachineManage/WarrantyCardOrderInfo.vue"
      //     ),
      //   meta: {
      //     title: "质保卡订单",
      //     permission: true
      //   }
      // },
      {
        path: "/inviteInvestmentJoinInfo",
        name: "inviteInvestmentJoinInfo",
        component: () => import("../views/InviteInvestmentJoinInfo.vue"),
        meta: {
          title: "招商加盟",
          permission: true
        }
      },
      {
        path: "/recoveryType",
        name: "recoveryType",
        component: () => import("../views/recoveryManage/RecoveryType.vue"),
        meta: {
          title: "回收类型",
          permission: true
        }
      },
      {
        path: "/mobileCategoriesInfo",
        name: "mobileCategoriesInfo",
        component: () => import("../views/recoveryManage/MobileCategoriesInfo.vue"),
        meta: {
          title: "商品分类管理",
          permission: true
        }
      },
      {
        path: "/recycledGoodsInfo",
        name: "recycledGoodsInfo",
        component: () => import("../views/recoveryManage/RecycledGoodsInfo.vue"),
        meta: {
          title: "回收商品管理",
          permission: true
        }
      },
      {
        path: "/modelAliasInfo",
        name: "modelAliasInfo",
        component: () => import("../views/recoveryManage/ModelAliasInfo.vue"),
        meta: {
          title: "手机别名信息",
          permission: true
        }
      },
      {
        path: "/priceSheetInfo",
        name: "priceSheetInfo",
        component: () => import("../views/recoveryManage/PriceSheetInfo.vue"),
        meta: {
          title: "报价单信息",
          permission: true
        }
      },
      {
        path: "/recycledGoodsOrderInfo",
        name: "recycledGoodsOrderInfo",
        component: () => import("../views/recoveryManage/RecycledGoodsOrderInfo.vue"),
        meta: {
          title: "回收订单管理",
          permission: true
        }
      },
      {
        path: "/storeInfo",
        name: "storeInfo",
        component: () => import("../views/user/storeManager/StoreInfo.vue"),
        meta: {
          title: "店铺列表信息",
          permission: true
        }
      },
      {
        path: "/registerStore",
        name: "registerStore",
        component: () => import("../views/user/storeManager/RegisterStore.vue"),
        meta: {
          title: "注册店铺信息",
          permission: true
        }
      },
      {
        path: "/investorsInfo",
        name: "investorsInfo",
        component: () => import("../views/user/investorsManager/InvestorsInfo.vue"),
        meta: {
          title: "投资商信息",
          permission: true
        }
      },
      {
        path: "/investorMoneyLogInfo",
        name: "investorMoneyLogInfo",
        component: () => import("../views/user/investorsManager/InvestorMoneyLogInfo.vue"),
        meta: {
          title: "投资商资金信息",
          permission: true
        }
      },
      {
        path: "/allocateInvestors",
        name: "allocateInvestors",
        component: () => import("../views/user/investorsManager/AllocateInvestors.vue"),
        meta: {
          title: "分配投资商",
          permission: true
        }
      },
      {
        path: "/operatorInfo",
        name: "operatorInfo",
        component: () => import("../views/user/operatorManager/OperatorInfo.vue"),
        meta: {
          title: "运营商信息",
          permission: true
        }
      },
      {
        path: "/allocateOperator",
        name: "allocateOperator",
        component: () => import("../views/user/operatorManager/AllocateOperator.vue"),
        meta: {
          title: "分配运营商信息",
          permission: true
        }
      },
      {
        path: "/salesmanInfo",
        name: "salesmanInfo",
        component: () => import("../views/user/SalesmanInfo.vue"),
        meta: {
          title: "配件业务员",
          permission: true
        }
      },
      {
        path: "/rentSalesmanInfo",
        name: "rentSalesmanInfo",
        component: () => import("../views/user/RentSalesmanInfo.vue"),
        meta: {
          title: "租机业务员",
          permission: true
        }
      },
      // {
      //   path: "/shopAssistantInfo",
      //   name: "shopAssistantInfo",
      //   component: () =>
      //     import(
      //       /* webpackChunkName: "StoreInfo" */
      //       "../views/user/ShopAssistantInfo.vue"
      //     ),
      //   meta: {
      //     title: "营业员信息",
      //     permission: true
      //   }
      // },
      {
        path: "/meituanUserInfo",
        name: "meituanUserInfo",
        component: () => import("../views/user/MeituanUserInfo.vue"),
        meta: {
          title: "美团用户",
          permission: true
        }
      },
      // {
      //   path: "/mobilePhoneClassInfo",
      //   name: "mobilePhoneClassInfo",
      //   component: () =>
      //     import(
      //       /* webpackChunkName: "mobilePhoneInfo" */
      //       "../views/mobilePhoneManage/MobilePhoneClassInfo.vue"
      //     ),
      //   meta: {
      //     title: "手机分类",
      //     permission: true
      //   }
      // },
      // {
      //   path: "/mobilePhoneInfo",
      //   name: "mobilePhoneInfo",
      //   component: () =>
      //     import(
      //       /* webpackChunkName: "mobilePhoneInfo" */
      //       "../views/mobilePhoneManage/MobilePhoneInfo.vue"
      //     ),
      //   meta: {
      //     title: "手机信息",
      //     permission: true
      //   }
      // },
      // {
      //   path: "/antChainMemberInfo",
      //   name: "antChainMemberInfo",
      //   component: () =>
      //     import(
      //       /* webpackChunkName: "mobilePhoneInfo" */
      //       "../views/mobilePhoneManage/AntChainMemberInfo.vue"
      //     ),
      //   meta: {
      //     title: "蚂蚁链会员信息",
      //     permission: true
      //   }
      // },
      // {
      //   path: "/antChainMemberOrder",
      //   name: "antChainMemberOrder",
      //   component: () =>
      //     import(
      //       /* webpackChunkName: "mobilePhoneInfo" */
      //       "../views/mobilePhoneManage/AntChainMemberOrder.vue"
      //     ),
      //   meta: {
      //     title: "蚂蚁链会员订单",
      //     permission: true
      //   }
      // },
      // {
      //   path: "/antChainMembershipBill",
      //   name: "antChainMembershipBill",
      //   component: () =>
      //     import(
      //       /* webpackChunkName: "mobilePhoneInfo" */
      //       "../views/mobilePhoneManage/AntChainMembershipBill.vue"
      //     ),
      //   meta: {
      //     title: "蚂蚁链会员账单",
      //     permission: true
      //   }
      // },
      // {
      //   path: "/warrantyCardInfo",
      //   name: "warrantyCardInfo",
      //   component: () =>
      //     import(
      //       /* webpackChunkName: "mobilePhoneInfo" */
      //       "../views/mobilePhoneManage/WarrantyCardInfo.vue"
      //     ),
      //   meta: {
      //     title: "质保卡服务信息",
      //     permission: true
      //   }
      // },
      // {
      //   path: "/newWarrantyCardInfoOrder",
      //   name: "newWarrantyCardInfoOrder",
      //   component: () =>
      //     import(
      //       /* webpackChunkName: "mobilePhoneInfo" */
      //       "../views/mobilePhoneManage/NewWarrantyCardInfoOrder.vue"
      //     ),
      //   meta: {
      //     title: "质保卡服务订单信息",
      //     permission: true
      //   }
      // },
      // {
      //   path: "/newWarrantyCardInfoBill",
      //   name: "newWarrantyCardInfoBill",
      //   component: () =>
      //     import(
      //       /* webpackChunkName: "mobilePhoneInfo" */
      //       "../views/mobilePhoneManage/NewWarrantyCardInfoBill.vue"
      //     ),
      //   meta: {
      //     title: "质保卡服务账单信息",
      //     permission: true
      //   }
      // },
      // {
      //   path: "/oldMobileQualityInspection",
      //   name: "oldMobileQualityInspection",
      //   component: () =>
      //     import(
      //       /* webpackChunkName: "oldMobilePhoneManage" */
      //       "../views/oldMobilePhoneManage/OldMobileQualityInspection.vue"
      //     ),
      //   meta: {
      //     title: "二手机质检",
      //     permission: true
      //   }
      // },
      {
        path: "/customerSchedule",
        name: "customerSchedule",
        component: () => import("../views/customerSchedule/CustomerSchedule.vue"),
        meta: {
          title: "客服排班",
          permission: true
        }
      },
      {
        path: "/masterLogInfo",
        name: "masterLogInfo",
        component: () => import("../views/MasterLogInfo.vue"),
        meta: {
          title: "操作日志",
          permission: true
        }
      },
      {
        path: "/commissionPlanInfo",
        name: "commissionPlanInfo",
        component: () => import("../views/douyinManager/CommissionPlanInfo.vue"),
        meta: {
          title: "通用佣金计划",
          permission: true
        }
      },
      {
        path: "/targetedCommissionPlan",
        name: "targetedCommissionPlan",
        component: () => import("../views/douyinManager/TargetedCommissionPlan.vue"),
        meta: {
          title: "定向佣金计划",
          permission: true
        }
      },
      // {
      //   path: "/webVersionUpdateInfo",
      //   name: "webVersionUpdateInfo",
      //   component: () =>
      //     import(
      //       /* webpackChunkName: "webVersionUpdateInfo" */
      //       "../views/WebVersionUpdateInfo.vue"
      //     ),
      //   meta: {
      //     title: "更新日志",
      //     permission: true
      //   }
      // },
      // {
      //   path: "/pictureCompression",
      //   name: "pictureCompression",
      //   component: () =>
      //     import(
      //       /* webpackChunkName: "pictureCompression" */
      //       "../views/utilityTool/PictureCompression.vue"
      //     ),
      //   meta: {
      //     title: "图片压缩",
      //     permission: true
      //   }
      // },
      {
        path: "/businessSchoolsClassInfo",
        name: "businessSchoolsClassInfo",
        component: () => import("../views/businessSchoolManager/BusinessSchoolsClassInfo.vue"),
        meta: {
          title: "主体信息",
          permission: true
        }
      },
      {
        path: "/businessSchoolsVideoInfo",
        name: "businessSchoolsVideoInfo",
        component: () => import("../views/businessSchoolManager/BusinessSchoolsVideoInfo.vue"),
        meta: {
          title: "视频信息",
          permission: true
        }
      },
      {
        path: "/visitLogInfo",
        name: "visitLogInfo",
        component: () => import("../views/visitingSystem/VisitLogInfo.vue"),
        meta: {
          title: "拜访记录",
          permission: true
        }
      },
      {
        path: "/followVisitRecordInfo",
        name: "followVisitRecordInfo",
        component: () => import("../views/visitingSystem/FollowVisitRecordInfo.vue"),
        meta: {
          title: "商务回访记录",
          permission: true
        }
      }
    ]
  },
  {
    path: "/notFound",
    name: "notFound",
    component: () => import("../views/NotFound.vue"),
    meta: {
      title: "NotFound"
    }
  },
  {
    path: "/:pathMatch(.*)*", // 修改此处
    redirect: "/notFound"
  }
];
